﻿using Mogre;
using System;

namespace ObjCore.MOgreExt
{
    public static class Vector2Ext
    {
        public static Vector2 ParseVt(this string line)
        {
            var ss = line.Split(new string[1] { " " }, StringSplitOptions.None);
            var res = new Vector2();
            res.x = float.Parse(ss[1]);
            res.y = float.Parse(ss[2]);

            return res;
        }

        public static string ToVt(this Vector2 v3)
        {
            return $"vt {v3.x:F6} {v3.y:F6}";
        }
    }
}
